﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using COM.OA.Entity;
using COM.OA.BLL;

public partial class qs_wenjian_readwenjian : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string id = this.Request.QueryString["fid"];
        int fid = Int32.Parse(id);


        if (!fid.Equals(""))
        {

        files fs = filesBLL.Select(fid);
        string filename=fs.f_filename;
        string lujing = "../gxxz/upload/" + filename;
        fs.f_isread = 1;

        int cishu = fs.f_readdegree + 1;
        fs.f_readdegree = cishu;
        filesBLL.Update(fs);

            
            this.Response.Redirect(lujing);
        }
        
    }
}
